package com.pipidan.blog.service.Impl;

import com.pipidan.blog.dao.ResourceDao;
import com.pipidan.blog.service.TestRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * @Author: runda
 * @CreateTime: 2022-12-05 22:03
 * @Description:
 */
@Service
public class TestRedisServiceImpl implements TestRedisService {
    @Autowired
    private RedisTemplate redisTemplate;
    @Autowired
    private ResourceDao resourceDao;
    @Override
    public void findAll() {
        Object sun = redisTemplate.opsForValue().get("sun");
        System.out.println("sun = " + sun);
    }
}
